<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xmlns:lang="http://www.springframework.org/schema/lang"
	   xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans-2.0.xsd
				http://www.springframework.org/schema/lang https://www.springframework.org/schema/lang/spring-lang-4.2.xsd">

	<lang:std id="messenger" script-source="classpath:org/springframework/scripting/groovy/Messenger.groovy">
		<lang:property name="message" value="Hello World!"/>
	</lang:std>

	<lang:std id="messengerWithInterface" script-source="classpath:org/springframework/scripting/groovy/Messenger.groovy"
			  script-interfaces="org.springframework.scripting.Messenger"/>

	<lang:std id="refreshableMessenger" refresh-check-delay="5000"
			script-source="classpath:org/springframework/scripting/groovy/Messenger.groovy">
		<lang:property name="message" value="Hello World!"/>
	</lang:std>

	<lang:std id="inlineMessenger" engine="Groovy">
		<lang:inline-script>
			package org.springframework.scripting.groovy;
			import org.springframework.scripting.Messenger
			class GroovyMessenger implements Messenger {
				def String message;
			}
			return new GroovyMessenger();
		</lang:inline-script>
	</lang:std>

	<lang:std id="inlineMessengerWithInterface" engine="Groovy" script-interfaces="org.springframework.scripting.Messenger">
		<lang:inline-script>
			package org.springframework.scripting.groovy;
			import org.springframework.scripting.Messenger
			class GroovyMessenger implements Messenger {
			def String message;
			}
			return new GroovyMessenger();
		</lang:inline-script>
	</lang:std>

</beans>
